﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using umbraco.cms.businesslogic.datatype;
using umbraco.interfaces;

namespace Module.MultiSiteFields.Controls.NodeBrowser
{
    public class PropertyDataType : AbstractDataEditor
    {
        
        public PropertyDataType ()
        {
            DBType = DBTypes.Ntext;
        }
        public override Guid Id
        {
            get
            {
                return new Guid("1E366B6F-FC71-4C2A-B267-961C1FB55FFF");
            }
        }
        public override string DataTypeName
        {
            get
            {
                return "Folder-Node Browser";
            }
        }
        private IDataPrevalue prevalueEditor;
        public override IDataPrevalue PrevalueEditor
        {
            get
            {
                if (prevalueEditor == null) prevalueEditor = base.PrevalueEditor;
                return prevalueEditor;
            }
        }

        private IDataEditor dataEditor;
        public override IDataEditor DataEditor
        {
            get
            {
                if (dataEditor == null) dataEditor = new PropertyDataEditor(this);
                return dataEditor;
            }
        }
    }
}
